package com.hzsai.mininotecaller.common;

import java.io.Serializable;

/**
 * @author hzsai
 * @date 2020/1/9 13:19
 * @usage:
 */
public enum Result implements IErrorCode, Serializable {

    SUCCESS(200, "操作成功"),
    FAILED(400, "操作失败"),
    UNAUTHORIZED(401, "无权限操作"),
    INTERNAL_ERROR(500, "服务器内部错误");

    private static final long serialVersionUID = 1321L;

    private long code;

    private String message;

    private Result(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
